package com.tanhua.manage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.manage.mapper.UserMapper;
import com.tanhua.manage.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService_six {

    @Autowired
    private UserMapper userMapper;

    public User queryUserById(Long id){
        return this.userMapper.selectById(id);
    }


    public List<User> queryUserList(List<Long> ids) {

        QueryWrapper<User> query = new QueryWrapper<>();
        query.in("id",ids);
        return this.userMapper.selectList(query);
    }





}
